<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>ROS安装_李德龙杰</title>
    <style>
        /* body {
            background-image: url(images/bg.jpg);
            background-repeat: no-repeat;
            background-position: center top;
            background-position: center -35px;

        } */
        body {
            /* width: 300px;
            height: 300px;
            background-color: black;
            background: rgba(0, 0, 0, 0.3); */
            background: rgba(0, 0, 0, .3);
        }

        .container {
            width: 60%;
            margin: 10% auto 0;
            background-color: #eeecec;
            padding: 2% 5%;
            border-radius: 10px
        }

        ul {
            padding-left: 20px;
        }

        ul li {
            line-height: 2.3
        }

        a {
            display: block;
            /* width: 230px; */
            height: 40px;
            background-color: #55585a;
            font-size: 14px;
            color: #fff;
            text-decoration: none;
            text-indent: 2em;
            line-height: 40px;
        }

        /* 2 鼠标经过链接变换背景颜色 */
        a:hover {
            background-color: #ff6700;
        }

        h2 {
            background-color: chocolate;

        }

        pre {
            background-color: #d8d8d8;
        }

        footer a {
            display: inline;
            /* width: 230px; */
            height: 40px;
            background-color: #d8d8d8;
            font-size: 14px;
            color: #000;
            text-decoration: none;
            text-indent: 2em;
            line-height: 40px;
        }
        footer div {
            background-color: #fff;
            /* padding: 20px 0; */
            text-align: center;
        }
    </style>
    <link rel="shortcut icon" href="favicon.png" />
</head>

<body>
    <div class="container">
        <h1>ROS安装_李德龙杰淘宝店！</h1>
        <a href='https://shop409343045.taobao.com/shop/view_shop.htm?spm=a230r.1.14.19.534413e8q3O6hN&user_number_id=1670499728'
            target='_blank'>
            <h1>机器人淘宝店直通车</h1>
        </a>
        <h3>ROS版本：kinetic、melodic、noetic、humble</h3>
        <ul>
            <li><a href='https://lidelongjie.lanzoui.com/ihh74p0nxij' target='_blank'>
                    <h1>Kinetic</h1>
                </a></li>
            <li><a href='https://lidelongjie.lanzout.com/iclIVp0nxja' target='_blank'>
                    <h1>Melodic</h1>
                </a></li>
            <li><a href='https://lidelongjie.lanzoui.com/i2eA5p0nxlc' target='_blank'>
                    <h1>Noetic</h1>
                </a></li>
            <li><a href='https://lidelongjie.lanzout.com/if1Gv0e939zg' target='_blank'>
                    <h1>humble</h1>
                </a></li>
            <li><a href='https://lidelongjie.lanzout.com/ih6C7yjgc0b' target='_blank'>
                    <h1>Turtle3</h1>
                </a></li>

        </ul>
    </div>
    <!-- <img src='https://gd1.alicdn.com/imgextra/i1/1670499728/O1CN01J065aN2LjTbcrYApD_!!1670499728.jpg' alt=' '> -->
    <div class="container">
        <h1 style="color: brown;">安装问题与解决办法</h1>
        <h2> 1、由于安装了python3.6导致roscore无法启动</h2>
        <h3>所以需要将python环境指向python2.7</h3>
        <h3> 方法：</h3>
        <h3>1、在.bashrc文本中最后一行添加</h3>
        <p>
            alias python=/usr/bin/python2.7
        </p>
        <h3>2、删掉现有的环境指向</h3>
        <p>
            sudo rm -rf /usr/bin/python
        </p>
        <h3>3、重新添加python2.7的环境指向</h3>
        <p>
            sudo ln -s /usr/bin/python2.7 /usr/bin/python
        </p>
    </div>

    <div class="container">
        <h1 style="color: brown;">安装问题与解决办法</h1>
        <h2>sh: 1: cannot create /etc/apt/sources.list.d/ros-latest.list: Directory nonexistent
        </h2>
        <p>错误的意思就是你在/etc/apt中没有sources.list.d这个文件夹，在这里新建一个文件夹即可</p>
        <h3> 解决方法：sudo rm -rf /var/lib/dpkg/lock<br>
            sudo rm -rf /var/cache/apt/archives/lock<br>
            sudo apt-get update<br><br>
            sudo dpkg --configure -a</h3>
        <pre>

        cd /etc/apt
        sudo mkdir sources.list.d



    </pre>
</div>
<div style="height: 20px;"></div>

<footer>
        
    <div>
        <p">Copyright © 2022 - <a href="https://www.rosrobot.store">李德龙杰</a> - All rights reserved<span> | </span><a href="https://beian.miit.gov.cn/" target="_blank" rel="noreferrer nofollow">蜀ICP备2022003161号-1</a></p>
        
    </div>
</footer>
</body>

</html> 